import request from '@/utils/request'

// 查询公司荣誉列表
export function listHonor(query) {
  return request({
    url: '/honor/listByDto',
    method: 'get',
    params: query
  })
}

// 查询公司荣誉详细
export function getHonor(honorId) {
  return request({
    url: '/honor/findById/' + honorId,
    method: 'get'
  })
}

// 新增公司荣誉
export function addHonor(data) {
  return request({
    url: '/honor/insert',
    method: 'post',
    data: data
  })
}

// 修改公司荣誉
export function updateHonor(data) {
  return request({
    url: '/honor/updateById',
    method: 'put',
    data: data
  })
}

// 删除公司荣誉
export function delHonor(honorId) {
  return request({
    url: '/honor/deleteByIds/' + honorId,
    method: 'delete'
  })
}